/// 减压助眠信息模型
class RelaxInfo {
  String? relaxName;
  String? relaxImage;
  String? relaxFilePath;

  RelaxInfo({
    this.relaxName,
    this.relaxImage,
    this.relaxFilePath,
  });

  factory RelaxInfo.fromJson(Map<String, dynamic> json) {
    return RelaxInfo(
      relaxName: json['relaxName'],
      relaxImage: json['relaxImage'],
      relaxFilePath: json['relaxFilePath'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'relaxName': relaxName,
      'relaxImage': relaxImage,
      'relaxFilePath': relaxFilePath,
    };
  }
}

/// 减压助眠频次模型
class RelaxFrequency {
  int? minutes;
  int? frequency;

  RelaxFrequency({
    this.minutes,
    this.frequency,
  });

  factory RelaxFrequency.fromJson(Map<String, dynamic> json) {
    return RelaxFrequency(
      minutes: json['minutes'],
      frequency: json['frequency'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'minutes': minutes,
      'frequency': frequency,
    };
  }
}
